/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tiebreak.BL;

/**
 *
 * @author Kennet
 */
public class EasyException extends Exception
{
    private final String msg;
    public final int ErrorCode;
    public final int EXPECTED_NOTHING_RETURNED = 1;
    public final int NOT_EXPECTED_NOTHING_RETURNED = 2;

    /**
     *
     * @param message
     */
    public EasyException(String message)
    {
        this.msg = "\n"+message+"\n";
	ErrorCode=0;
    }

    /**
     *
     * @param string
     * @param i
     */
    EasyException(String string, int i)
    {
	this.msg = string;
	this.ErrorCode=i;
    }

    /**
     * Returns the message
     * @return
     */
    @Override
    public String getMessage()
    {
        return msg;
    }
}
